package com.antis.olsl.magic.adapter;

import com.antis.olsl.magic.R;
import com.antis.olsl.magic.response.GetExWarehouseTopListResp;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class OutboundListAdapter extends BaseQuickAdapter<GetExWarehouseTopListResp.ContentBean, BaseViewHolder> implements LoadMoreModule {
    public OutboundListAdapter(int layoutResId, @Nullable List<GetExWarehouseTopListResp.ContentBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, GetExWarehouseTopListResp.ContentBean item) {
        baseViewHolder.setText(R.id.text_product_code, item.productCode);
        baseViewHolder.setText(R.id.text_product_name, item.productName);
        baseViewHolder.setText(R.id.text_num, item.outCount);
        baseViewHolder.setText(R.id.text_amount, item.outSum);
    }
}
